<?php
$service  = new SoapClient("http://208.74.72.210:8080/EnticeWS/services/billing3?wsdl");

$key = 'pass';
$key = mkResllerKey($key);

//041565409351933
//$data = $service->getSubscriber('12',$key, '04128582369454235');
//acct_id = 283
//cust_id = 4128

//041287165256993
$cust_id = 4156;
$acct_id = 283;

$xml = new SimpleXMLElement('<EnticeRequest></EnticeRequest>');
	$xmldata = $xml->addChild('data');
		$row = $xmldata->addChild('row');
            $row->addChild('SUBSCRIBER_ID', '041560981722186');
            $row->addChild('FIRST_NAME','tuan' );
			$row->addChild('LAST_NAME','tuan' );
			$row->addChild('ACCT_ID','283');
			$row->addChild('CUST_ID','4156');
            $row->addChild('BALANCE', '100');
			$row->addChild('STATUS','2');
				$contact = $row->addChild('ANILIST');
                    $ani = $contact->addChild('ANI');
                        $ani->addChild('NUMBER', '1111111111');
                        $ani->addChild('PIN', '111');
                    $ani = $contact->addChild('ANI');
                        $ani->addChild('NUMBER', '2222222222');
                        $ani->addChild('PIN', '222');

$a= $xml->asXML();
  
$data = $service->updateANISubscriber('12',$key,$a,'bao');

//header('Content-type: text/xml');
//echo ($xml->asXML());

var_dump($data);

function mkResllerKey($key)
{
	$dt = gmdate("m/d/Y", time());
	$key =substr($dt,0,6).$key.substr($dt, 5);
	return md5($key);
}